import java.util.Scanner;
/**
 * processing example: working with a single logic operator
 * 
 * @author Amrita Mukherjee
 * @version 02/10/2012
 */
public class A8_2
{
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        
        System.out.println("This program helps you to make a decision. ");
        System.out.println();
        
        System.out.println("Do you want to be rich? ");
        String input1 = keyboard.nextLine();
        boolean wantsToBeRich = input1.startsWith("y");
        
        System.out.println("Do you want to be famous? ");
        String input2 = keyboard.nextLine();
        boolean wantsToBeFamous = input2.startsWith("y");
        
        if(wantsToBeRich == true && wantsToBeFamous == true)
        {
            System.out.println("You are ambitious!");
        }
        else
        {
              System.out.println("Yeah, the rich and famous will die young.");
        }
    }
}
/*
 * My test session:
 * This program helps you to make a decision. 

Do you want to be rich? 
yes
Do you want to be famous? 
yes
You are ambitious!
This program helps you to make a decision. 

Do you want to be rich? 
no
Do you want to be famous? 
no
Yeah, the rich and famous will die young.
This program helps you to make a decision. 

Do you want to be rich? 
yes
Do you want to be famous? 
no
Yeah, the rich and famous will die young.
This program helps you to make a decision. 

Do you want to be rich? 
no
Do you want to be famous? 
yes
Yeah, the rich and famous will die young.
*/
